import request from '@/utils/request.js'

// 收容所列表查询
export const shelterListService = (params) => {
    return request.get('/shelter',{params:params})
}

// 查看收容所详细信息
export const shelterFindByIdService = (id) =>{
    return request.get('/shelter/detail?id='+id)
}

// 收容所添加
export const shelterAddService = (shelterDate) => {
    return request.post('/shelter', shelterDate)
}

// 收容所修改
export const shelterUpdateService = (shelterDate) => {
    return request.put('/shelter', shelterDate)
}

// 收容所删除
export const shelterDeleteService = (id) => {
    return request.delete('/shelter?id=' + id)
}